<?php
use think\facade\Route;

Route::get('news/:id', 'portal/Article/index?cid=1')->append(array('cid' => '1',))
->pattern(array('id' => '\d+',  'cid' => '\d+',));

Route::get('13123123/:id', 'portal/Article/index?cid=6')->append(array('cid' => '6',))
->pattern(array('id' => '\d+',  'cid' => '\d+',));

Route::get('3333/:id', 'portal/Article/index?cid=7')->append(array('cid' => '7',))
->pattern(array('id' => '\d+',  'cid' => '\d+',));

Route::get('news', 'portal/List/index?id=1')->append(array('id' => '1',))
->pattern(array('id' => '\d+',));

Route::get('13123123', 'portal/List/index?id=6')->append(array('id' => '6',))
->pattern(array('id' => '\d+',));

Route::get('3333', 'portal/List/index?id=7')->append(array('id' => '7',))
->pattern(array('id' => '\d+',));


